package com.nut.spp.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.nut.spp.entity.GoodsCompose;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface GoodsComposeMapper extends BaseMapper<GoodsCompose> {

    @Select("select * from biz_goods_compose where goods_id=#{goodsId} and deleted=0")
    List<GoodsCompose> selectByGoodsId(@Param("goodsId") Integer goodsId);

}